#include <QCoreApplication>
#include <iostream>

using namespace std;

void pr_4_28()
{
    cout << "sizeof char : " << sizeof(char) << endl;
    cout << "sizeof short : " << sizeof(short) << endl;
    cout << "sizeof int : " << sizeof(int) << endl;
    cout << "sizeof long : " << sizeof(long) << endl;
    cout << "sizeof long long : " << sizeof(long long) << endl;
    cout << "sizeof float : " << sizeof(float) << endl;
    cout << "sizeof double : " << sizeof(double) << endl;
}

void pr_4_29()
{
    int x[10];
    int *p = x;
    cout << sizeof(x) / sizeof(*x) << endl;
    cout << sizeof(p) << endl;
    cout << sizeof(p) / sizeof(*p) << endl;
}

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    pr_4_29();

    return a.exec();
}
